import request from '@/utils/request'

/*------get菜单按钮数据--------*/
export function getMenuButtonData(query) {
  return request({
    url: '/api/system/menu_button/',
    method: 'get',
    params: { ...query, page:1,limit: 999 }
  })
}
/*------add菜单按钮数据--------*/
export function addMenuButtonData(data) {
  return request({
    url: '/api/system/menu_button/',
    method: 'post',
    data
  })
}
/*------edit菜单按钮数据--------*/
export function editMenuButtonData(obj) {
  return request({
    url: '/api/system/menu_button/'+obj.id+'/',
    method: 'put',
    data:obj
  })
}
/*------delete菜单按钮数据--------*/
export function delMenuButtonData(pk) {
  return request({
    url: '/api/system/menu_button/'+pk+'/',
    method: 'delete',
  })
}
